package cn.gbase.jiangsu.data.transfer.bean;

import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.View;

@Data
@View("goodes_order_detail_view")
public class GoodesOrderDetailView {
	//columns START
	/**
	 * 订单ID       db_column: id 
	 */
	@Column("id")
	private Integer id;

	/**
	 * 订单号    db_column: code 
	 */
	@Column("code")
	private String code;

	/**
	 * 父ID    db_column: pid 
	 */
	@Column("pid")
	private Integer pid;

	/**
	 * 业主账号    db_column: user_id 
	 */
	@Column("user_id")
	private Integer userId;

	/**
	 * 订单时间    db_column: create_time 
	 */
	@Column("create_time")
	private Date createTime;

	/**
	 * 状态    db_column: status 
	 */
	@Column("status")
	private Integer status;

	/**
	 * 代下订单账号ID    db_column: oprator_id 
	 */
	@Column("oprator_id")
	private Integer opratorId;

	/**
	 * 配送方式    db_column: post_type 
	 */
	@Column("post_type")
	private String postType;

	/**
	 *     db_column: sell_price 
	 */
	@Column("sell_price")
	private BigDecimal sellPrice;

	/**
	 * 配送地址    db_column: address 
	 */
	@Column("address")
	private String address;

	/**
	 * 备注    db_column: remark 
	 */
	@Column("remark")
	private String remark;

	/**
	 *     db_column: delivery_price 
	 */
	@Column("delivery_price")
	private BigDecimal deliveryPrice;

	/**
	 *     db_column: total_price 
	 */
	@Column("total_price")
	private BigDecimal totalPrice;

	/**
	 *  付款方式   db_column: pay_type 
	 */
	@Column("pay_type")
	private Integer payType;

	/**
	 *  显示Flag  db_column: show_flag 
	 */
	@Column("showFlag")
	private Integer showFlag;

	/**
	 *  供货商ID  db_column: supplier_id 
	 */
	@Column("supplier_id")
	private Integer supplierId;

	/**
	 *  社区服务站ID  db_column: company_id 
	 */
	@Column("company_id")
	private Integer companyId;

	/**
	 *  预计送达时间  db_column: expect_arrive_date 
	 */
	@Column("expect_arrive_date")
	private Date expectArriveDate;

	/**
	 *  实际送达时间  db_column: actual_arrive_date 
	 */
	@Column("actual_arrive_date")
	private Date actualArriveDate;

	/**
	 *  1是普通商品订单，2是服务订单  db_column: order_type 
	 */
	@Column("order_type")
	private Integer orderType;

	/**
	 *  社区服务备注  db_column: service_remark 
	 */
	@Column("service_remark")
	private String serviceRemark;

	/**
	 *  优惠金额  db_column: discount_price 
	 */
	@Column("discount_price")
	private BigDecimal discountPrice;

	/**
	 *  订单主表ID  db_column: order_id 
	 */
	@Column("order_id")
	private Integer orderId;

	/**
	 *  商品ID  db_column: product_id 
	 */
	@Column("product_id")
	private Integer productId;

	/**
	 *  商品数量  db_column: product_count 
	 */
	@Column("product_count")
	private Integer productCount;

	/**
	 *  单价  db_column: unit_price 
	 */
	@Column("unit_price")
	private BigDecimal unitPrice;

	private BigDecimal zongjiEvery;
	
	private String showProductName;
}
